<!DOCTYPE html>
<html>
<head>
	<title> 4-4 给组件绑定原生事件-改进</title>
	<script type="text/javascript" src="../../vue.js"></script>
</head>
<body>
	<div id='root'>
		<child v-on:click.native="handleClick"></child>
	</div>
	<script type="text/javascript">
		var a = {
			template:"<div>hello world</div>"
		}
		var vm = new Vue({
			el:'#root',
			components:{
				child:a
			},
			methods:{
				handleClick:function(){
					alert('native 方式触发组件原生事件')
				}
			}
		})
	</script>
</body>
</html>